﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QL_KhachHang
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }
        FrmDangNhap dn = null;
        private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dn == null || dn.IsDisposed)
            {
                dn = new FrmDangNhap();
                dn.Show();
            }
            else
            {
                dn.Activate();
            }
            this.Hide();
        }


        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void kháchHàngToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmKhachHang kh = new frmKhachHang();
            kh.Show();
        }

        private void phiếuThuêPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmThuePhong tp = new FrmThuePhong();
            tp.Show();
        }

        private void báoCáoDoanhThuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmThongkethu tk = new FrmThongkethu();
            tk.Show();
        }

        private void phòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmLapDanhMucphong dmp = new FrmLapDanhMucphong();
            dmp.Show();
        }

        private void chucToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmChucvu cv = new FrmChucvu();
            cv.Show();
        }

        private void hóaĐơnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmHoaDon hd = new FrmHoaDon();
            hd.Show();
        }

        private void đổiMậtKhẩuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmDoiMK doimk = new FrmDoiMK();
            doimk.Show();
        }

        private void nhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmNhanVien nv = new FrmNhanVien();
            nv.Show();
        }

        private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        private void FrmMain_Load(object sender, EventArgs e)
        {

        }
    }
}
